package net.jltec.utils;

import net.jltec.view.R;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;


public class AlertDialogUtil {
	 public static AlertDialog createSubmitDialog(Context ctx,DialogInterface.OnClickListener submitCall,DialogInterface.OnClickListener cancelCall){
		 String message = "您确认提交吗?";
		 //android.R.drawable.ic_dialog_alert
		 AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
		 builder.setMessage(message)
		        .setIcon(android.R.drawable.ic_dialog_alert)
		        .setPositiveButton(R.string.submit, submitCall)
		        .setNegativeButton(R.string.cancel, cancelCall);
		 AlertDialog alert = builder.create();
		 alert.show();
		 return alert;
	 }

	 

}
